package org.example.dao.dao.market;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.dao.dto.market.CKindDto;
import org.example.dao.entity.market.CKind;

import java.util.List;

@Mapper
public interface CKindDao extends BaseMapper<CKind> {

    CKindDto getKindDto(@Param("kindId") Long kindId);

    List<CKindDto> getKinds(@Param("storeId") Long storeId, @Param("fatherId") Long fatherId,
                            @Param("start") Long start, @Param("limit") Long limit);

    Long getKindsNum(@Param("storeId") Long storeId, @Param("fatherId") Long fatherId);

}
